import { stringify } from 'qs';
import request from '@/utils/requestnodva';
export async function GetImageStsConfig(params, callback) {
  return request(`/${window.storeId}/ImageCenter/GetImageStsConfig?${stringify(params)}`,{}, callback);
}
export async function GetImageList(params, callback) {
  return request(`/${window.storeId}/ImageCenter/GetImageList?${stringify(params)}`, {},callback);
}
// export async function GetImageCategory(params) {

//   return request(`/${window.storeId}/ImageCenter/GetImageCategory?${stringify(params)}`);
// }
export async function GetImageCategory(params, callback) {

  return request(`/${window.storeId}/ImageCenter/GetImageCategoryCount?${stringify(params)}`,{},callback);
}

//

export async function GetLogList(params, callback) {
  return request(`/${window.storeId}/DiaryManager/GetList`,  {
    method: 'POST',
    body: {
      ...params,
    },
  },callback);
}
